package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 erp_commodities
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
public class ErpCommodities extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String commName;

    /** 规格 */
    @Excel(name = "规格")
    private String commSpec;

    /** 货号 */
    @Excel(name = "货号")
    private String commSku;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String userAccount;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String userName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommName(String commName) 
    {
        this.commName = commName;
    }

    public String getCommName() 
    {
        return commName;
    }
    public void setCommSpec(String commSpec) 
    {
        this.commSpec = commSpec;
    }

    public String getCommSpec() 
    {
        return commSpec;
    }
    public void setCommSku(String commSku) 
    {
        this.commSku = commSku;
    }

    public String getCommSku() 
    {
        return commSku;
    }
    public void setUserAccount(String userAccount) 
    {
        this.userAccount = userAccount;
    }

    public String getUserAccount() 
    {
        return userAccount;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commName", getCommName())
            .append("commSpec", getCommSpec())
            .append("commSku", getCommSku())
            .append("userAccount", getUserAccount())
            .append("userName", getUserName())
            .append("creatTime", getCreatTime())
            .toString();
    }
}
